Skip to content

Tooltip classes (simple and geojson/topojson) - #883

Merged
Conengmo merged 175 commits into
python-visualization:masterfrom
jtbaker:patch-2
Aug 8, 2018
Merged

Conengmo merged 175 commits into
python-visualization:masterfrom
jtbaker:patch-2

Conversation

@jtbaker

@jtbaker jtbaker commented Jun 15, 2018 •

Copy link
Copy Markdown
Contributor

Added a new Tooltip class to reference GeoJson feature properties, with tests, documentation, and examples. It's flexible, and can take field names, aliases, that can be turned on/off with the 'labels' boolean, a 'sticky' property, and can incorporate Javascript's .toLocaleString() functionality if desired. The same string can be passed for each object with the 'text' variable as well if you'd rather not use the 'fields'.

Also updated the GeoJson JS template to reference this Tooltip object, and added a test to make sure that the values passed exist in the properties.

Use case at this nbviewer

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants